<form name="editForm0">
	<div class="form-group">
		<div class="col-md-12 form-item">
			<div class="col-sm-3 col-md-3 form-title"><span style="color:red;">*</span>申请岗位：</div>
			<div class="col-sm-8 col-md-8 form-input">
				<select id="roleId0"
						name="roleId"
						class="form-control" 
						ng-model="editModel0.request.roleId">
                        <option ng-repeat="role in viewModel.roleList" value="{{role.roleId}}" ng-selected="editModel0.selected(role)">{{role.roleName}}--({{role.departmentCode}}){{role.departmentName}}</option>
			    </select>
			</div>
		</div>
		<div class="col-md-12 form-item">
			<div class="col-sm-3 col-md-3 form-title"><span style="color:red;">*</span>休假类型：</div>
			<div class="col-sm-8 col-md-8 form-input"
				 ng-class="{ 'has-error' : editForm0.requestType.$dirty && editForm0.requestType.$invalid}">
			 	<select id="requestType0" ng-change="editModel0.selectRequestType()" name="requestType" class="form-control" ng-model="editModel0.request.requestType" required>
                    <option ng-repeat="dictionary in viewModel.requestTypeData" value="{{dictionary.dicCd}}">{{dictionary.dicName}}</option>
                </select>
			</div>
		</div>
		<div class="col-md-12 form-item"> 	
			<div class="col-sm-3 col-md-3 form-title"><span style="color:red;">*</span>开始日期：</div>	
            <div class="col-lg-8 col-md-8 form-input">
				<div class="input-group" ng-class="{ 'has-error' : editForm0.startDate.$dirty && editForm0.startDate.$invalid }">
					<input name="startDate" 
						   ng-model="editModel0.request.startDate" 
						   ng-change="editModel0.dateChange();editModel0.selectRequestType()"
						   class="form-control datetime-picker" 
						   type="text"
						   autofocus="autofocus" 
						   maxLength="10"
						   z-datepicker-popup="{{viewModel.format}}"
						   is-open="editModel0.startDateOpened"
						   datepicker-options="viewModel.dateOptions"
					       close-text="Close"
					       required
					       readonly>
					<span class="input-group-addon cursorPointer" ng-click="editModel0.startDateOpen($event)"><i class="fa-calendar"></i></span>
				</div>
            </div>
           </div>
           <div class="col-md-12 form-item" ng-hide="editModel0.request.requestType == 3 || editModel0.request.requestType == 4 || editModel0.request.requestType == 11 || editModel0.request.requestType == 12|| editModel0.request.requestType == 13">
			<div class="col-sm-3 col-md-3 form-title"><span style="color:red;">*</span>开始时间：</div>
			<div class="col-sm-8 col-md-8 form-input">
			 	<div class="input-group" ng-class="{ 'has-error' : editForm0.vStartTime.$dirty && editForm0.vStartTime.$invalid}">
					<input id="vStartTime0"
						   name="vStartTime" 
						   ng-change="editModel0.dateChange()"
						   ng-click="editModel0.startTimeClick($event)"
				 		   class="form-control" 
				 		   ng-model="editModel0.request.startTime"
				 		   ng-pattern="/^([01][0-9]|2[0-3]):([0-5][0-9])$/"
				 		   maxLength="5"
				 		   data-autoclose="true"
				 		   required>	   
				</div>	   
			</div>
		</div>
		<div class="col-md-12 form-item" 
			ng-show="editModel0.startToTimeShow == 0"
			ng-hide="editModel0.startToTimeShow != 0 || editModel0.request.requestType == 3 || editModel0.request.requestType == 4 || editModel0.request.requestType == 11 || editModel0.request.requestType == 12|| editModel0.request.requestType == 13">
			<div class="col-sm-3 col-md-3 form-title"><span style="color:red;">*</span>至：</div>
			<div class="col-sm-8 col-md-8 form-input">
			 	<div class="input-group" ng-class="{ 'has-error' : editForm0.vStartToTime.$dirty && editForm0.vStartToTime.$invalid}">
					<input id="vStartToTime0"
						   name="vStartToTime" 
						   ng-change="editModel0.dateChange()"
						   ng-click="editModel0.startToTimeClick($event)"
				 		   class="form-control" 
				 		   ng-model="editModel0.request.startToTime"
				 		   ng-pattern="/^([01][0-9]|2[0-3]):([0-5][0-9])$/"
				 		   data-autoclose="true"
				 		   maxLength="5">  
				</div>	   
			</div>
		</div>
           <div class="col-md-12 form-item" ng-hide="editModel0.request.requestType == 12">
           	<div class="col-sm-3 col-md-3 form-title"><span style="color:red;">*</span>结束日期：</div>
            <div class="col-lg-8 col-md-8 form-input">
				<div class="input-group" ng-class="{ 'has-error' : editForm0.endDate.$dirty && editForm0.endDate.$invalid }">
					<input name="endDate" 
						   ng-model="editModel0.request.endDate" 
						   ng-change="editModel0.dateChange()"
						   class="form-control datetime-picker" 
						   type="text"
						   autofocus="autofocus" 
						   maxLength="10"
						   z-datepicker-popup="{{viewModel.format}}"
						   is-open="editModel0.endDateOpened"
						   datepicker-options="viewModel.dateOptions"
					       close-text="Close"
					       required
					       readonly>
					<span class="input-group-addon cursorPointer" ng-click="editModel0.endDateOpen($event)"><i class="fa-calendar"></i></span>
				</div>
            </div>
           </div>
           <div class="col-md-12 form-item" ng-hide="editModel0.request.requestType == 3 || editModel0.request.requestType == 4 || editModel0.request.requestType == 11 || editModel0.request.requestType == 12 || editModel0.request.requestType == 13">
			<div class="col-sm-3 col-md-3 form-title"><span style="color:red;">*</span>结束时间：</div>
			<div class="col-sm-8 col-md-8 form-input">
			 	<div class="input-group" ng-class="{ 'has-error' : editForm0.vEndTime.$dirty && editForm0.vEndTime.$invalid}">
					<input id="vEndTime0"
			 		   name="vEndTime"
			 		   ng-change="editModel0.dateChange()" 
			 		   ng-click="editModel0.endTimeClick()"
			 		   class="form-control" 
			 		   ng-model="editModel0.request.endTime"
			 		   maxLength="5"
			 		   ng-pattern="/^([01][0-9]|2[0-3]):([0-5][0-9])$/"
			 		   data-autoclose="true"
			 		   required>
				</div>
			</div>
		</div>
		<div class="col-md-12 form-item" 
			ng-show="editModel0.request.requestType == 3"
			ng-hide="editModel0.request.requestType != 3">
			<div class="col-sm-3 col-md-3 form-title"><span style="color:red;">*</span>结婚登记日：</div>
			<div class="col-sm-8 col-md-8 form-input">
			 	<div class="input-group" ng-class="{ 'has-error' : editForm0.marryDate.$dirty && editForm0.marryDate.$invalid }">
					<input name="marryDate" 
						   ng-model="editModel0.request.marryDate" 
						   class="form-control datetime-picker" 
						   type="text" 
						   autofocus="autofocus" 
						   maxLength="10"
						   z-datepicker-popup="{{viewModel.format}}"
						   is-open="editModel0.marryDateOpened"
						   datepicker-options="viewModel.dateOptions"
					       close-text="Close"
					       required
					       readonly>
					<span class="input-group-addon cursorPointer" ng-click="editModel0.marryDateOpen($event)"><i class="fa-calendar"></i></span>
				</div>
			</div>
		</div>

		<div class="col-md-12 form-item" ng-show="editModel0.request.requestType == 12" >
			<div class="col-sm-3 col-md-3 form-title"><span style="color:red;">*</span>时段类型：</div>
			<div class="col-sm-8 col-md-8 form-input"
				 ng-class="{ 'has-error' : editForm0.timeTnterval.$dirty && editForm0.timeTnterval.$invalid}">
			 	<select id="timeTnterval0" name="timeTnterval" class="form-control" ng-model="editModel0.request.timeTnterval" required>
                       <option value=""></option>
                       <option value="0">上午</option>
                       <option value="1">下午</option>
                   </select>
			</div>
		</div>
		<div class="col-md-12 form-item" ng-hide="editModel0.request.requestType == 3 
											   || editModel0.request.requestType == 4 
											   || editModel0.request.requestType == 5 
											   || editModel0.request.requestType == 6 
											   || editModel0.request.requestType == 11 
											   || editModel0.request.requestType == 12
											   || editModel0.request.requestType == 13">
			<div class="col-sm-3 col-md-3 form-title" ng-hide="editModel0.request.requestType == 10||editModel0.request.requestType == 3||editModel0.request.requestType == 11">可用时长：</div>
			<div class="col-sm-3 col-md-3 form-title" ng-hide="editModel0.request.requestType != 10">每日可用时长：</div>
			<div class="col-sm-8 col-md-8 form-input">
			 	<input ng-show="editModel0.marchtType==false" 
			 		   ng-hide="editModel0.marchtType==true"
			 		   name="surplusHours" 
			 		   class="form-control" 
			 		   ng-model="editModel0.surplusHoursAndMin" 
			 		   disabled="disabled"> 
			 	<select ng-show="editModel0.marchtType==true" 
			 		    ng-hide="editModel0.marchtType==false"
			 			name="marchtYear" 
			 			class="form-control"
			 			ng-model="editModel0.marchtYear" >
                    <option ng-repeat="march in editModel0.marchtList" value="{{march.year}}" ng-selected ="editModel0.selected(march.year)">
                    	{{viewModel.toHourMinute(march.vacation)}}
                    	--({{march.year}})
                    </option>
                </select>
			</div>
		</div>
		<div class="col-md-12 form-item" ng-hide="editModel0.request.requestType == 3 || editModel0.request.requestType == 4 || editModel0.request.requestType == 11 || editModel0.request.requestType == 12 || editModel0.request.requestType == 13">
			<div class="col-sm-3 col-md-3 form-title">休假时长：</div>
			<div class="col-sm-8 col-md-8 form-input">
			 	<input id="vEhours0"
			 		   name="vEhours" 
			 		   class="form-control" 
			 		   ng-model="editModel0.hours" 
			 		   disabled="disabled">   
			</div>
		</div>
		<div class="col-md-12 form-item" ng-hide="editModel0.request.requestType == 1 || editModel0.request.requestType == 0 || editModel0.request.requestType == 5 || editModel0.request.requestType == 6 || editModel0.request.requestType == 10|| editModel0.request.requestType == 12 || editModel0.request.requestType == 4||editModel0.request.requestType == 3||editModel0.request.requestType == 11"" >
			<div class="col-sm-3 col-md-3 form-title">可用天数：</div>
			<div class="col-sm-8 col-md-8 form-input">
			 	<input name="overDayNumber" 
			 		   class="form-control" 
			 		   ng-model="editModel0.surplusDayNumber" 
			 		   disabled="disabled">
			</div>
		</div>
           <div class="col-md-12 form-item" ng-hide="editModel0.request.requestType == 1 || editModel0.request.requestType == 0 || editModel0.request.requestType == 5 || editModel0.request.requestType == 6 || editModel0.request.requestType == 10|| editModel0.request.requestType == 12">
			<div class="col-sm-3 col-md-3 form-title">休假天数：</div>
			<div class="col-sm-8 col-md-8 form-input">
			 	<input name="dayNumber" 
			 		   class="form-control" 
			 		   ng-model="editModel0.request.dayNumber" 
			 		   disabled="disabled">
			</div>
		</div>
        <div class="col-md-12 form-item">
			<div class="col-sm-3 col-md-3 form-title"><span style="color:red;">*</span>申请说明：</div>
			<div class="col-sm-8 col-md-8 form-input" ng-class="{ 'has-error' : editForm0.description.$dirty && editForm0.description.$invalid }">
			 	<textarea name="description" 
			 		   class="form-control" 
			 		   ng-model="editModel0.request.description" 
			 		   maxLength="255"
			 		   rows="3"
			 		   required>
			 	</textarea>
			</div>
		</div>
		
	</div>	
</form>
